<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%@ taglib
	uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="description" content="">
<base href="<%=basePath%>">
<title>本周待办任务</title>
<link rel="stylesheet"
	href="https://cdn.bootcss.com/weui/1.1.3/style/weui.min.css">
<link rel="stylesheet"
	href="https://cdn.bootcss.com/jquery-weui/1.2.1/css/jquery-weui.min.css">
</head>
<body ontouchstart>
	<form id="form1" name="form1" method="post" action="wx/taskAdd">
		<div
			style="background: blue; height: 50px; margin: 5px; color: #FFFFFF; text-align: center; font-size: 18px; line-height: 50px;">海科任务督办系统</div>
		<div class="weui-cells">
			<c:forEach items="${taskList}" var="item">
				<a class="weui-cell weui-cell_access"
					href="javascript:edit('${item}');">
					<div class="weui-cell__bd">
						<p>${item.PRO_CONTENT}</p>
					</div>
					<div class="weui-cell__ft"></div>
				</a>
			</c:forEach>
			<!-- 			<input type="text" id="item" name="item" value="123"></input> -->
		</div>
		<div class="weui-footer weui-footer_fixed-bottom">
			<input type="hidden" name="item" id="item"> </input>
			<p class="weui-footer__text">Copyright © 山东海科化工集团</p>
		</div>
		<script>
			function edit(item) {
				$('#item').val(item);
				document.form1.submit();
			}
		</script>
	</form>
</body>

<script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>
<script
	src="https://cdn.bootcss.com/jquery-weui/1.2.1/js/jquery-weui.min.js"></script>
<!-- 如果使用了某些拓展插件还需要额外的JS -->
<script src="https://cdn.bootcss.com/jquery-weui/1.2.1/js/swiper.min.js"></script>
<script
	src="https://cdn.bootcss.com/jquery-weui/1.2.1/js/city-picker.min.js"></script>
<script>
	$(function() {
	})
</script>
</html>